home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSI Options 6.xpl < prev    next >
Text File  |  2003-08-05  |  2KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="7"
  3. "COUNT"="5"
  4. "UIPATH"="System\Software Installation\Windows Installer"
  5. "NAME"="Media Access Order - System"
  6. "VERSION"="1.02"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="First network, then CD/DVD, then URL"
  9. "TEXT 2"="First network, then URL, then CD/DVD"
  10. "TEXT 3"="First CD/DVD, then network, then URL (Default)"
  11. "TEXT 4"="First URL, then network, then CD/DVD"
  12. "TEXT 5"="First URL, then CD/DVD, then network"
  13. "DESCRIPTION 1"="When searching for the source of installation files, the Windows Installer will search the different locations in the order you can configure here."
  14. "DESCRIPTION 2"="Please note: Configuring this item apply to all users on this machine and also overwrites ANY media access setting for ANY user."
  15. "DESCRIPTION 3"="This means, you should ONLY set this item when you want to have the same setting for all users."
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20.  
  21.  
  22. sPathSys="HKLM\Software\Policies\Microsoft\Windows\Installer\"
  23. sPathUsr="HKCU\Software\Policies\Microsoft\Windows\Installer\"
  24.  
  25. sV1="SearchOrder" 'STR - usr
  26.  
  27. Sub Plugin_Initialize 
  28.  s=RegReadValue(sPathSys & sV1)
  29.  s=Ucase(s)
  30.  
  31.  if s="NMU" then SetUIElement 1,true
  32.  if s="NUM" then SetUIElement 2,true
  33.  if s="MNU" then SetUIElement 3,true
  34.  if s="UNM" then SetUIElement 4,true
  35.  if s="UMN" then SetUIElement 5,true
  36. End Sub
  37.  
  38. Sub Plugin_CheckData(ElementIndex)
  39. End Sub
  40.  
  41. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  42.  s=""
  43.  
  44.  if GetUIElement(1)=true then s="NMU"
  45.  if GetUIElement(2)=true then s="NUM"
  46.  if GetUIElement(3)=true then s="MNU"
  47.  if GetUIElement(4)=true then s="UNM"
  48.  if GetUIElement(5)=true then s="UMN"
  49.  
  50.  if len(s)>0 then
  51.     Call RegWriteValue(sPathSys & sV1,s,1)
  52.  end if
  53. End Sub
  54.  
  55. Sub Plugin_Terminate 
  56. End Sub
  57.